import BaseService from '@/common/baseServiceV2.js'
import CategoryModel from './model/categoryModel.js'
export default class CategoryService extends BaseService{
	
	/*
	   interface Category{
			tabs点击事件
	         function tabClick(object categoryModel);
	   }
	*/
   
   constructor(func) {
   	super()
	this.tabIndex=1
   	this.data=new CategoryModel().data
   	this.func=func
   }
   
   setRefresh(source){
   	let model = new CategoryModel(source,this.func)
   	super.refresh(model)
   }
   setMore(source){
   	let model = new CategoryModel(source,this.func)
   	super.loadMore(model)
   }
}